// 白色背景
.bg-white {
  background: #fff;
}

// 白色文字
.text-white {
  color: #fff;
}

// 主要文字颜色
.text-main {
  color: #303133;
}

// 常规文字颜色
.text-regular {
  color: #606266;
}

// 次要文字颜色
.text-secondary {
  color: #909399;
}

// 占位文字颜色
.text-placeholder {
  color: #c0c4cc;
}

.text-warning {
  color: #e6a23c;
}

// 文字居中
.text-center {
  text-align: center;
}

// 文字居右
.text-right {
  text-align: right;
}

// 字重
.text-bold {
  font-weight: bold;
}

// 省略
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vertical-middle {
  vertical-align: middle;
}

.px12 {
  font-size: 12px;
}

.px14 {
  font-size: 12px;
}

.px16 {
  font-size: 16px;
}

.px18 {
  font-size: 18px;
}

.px20 {
  font-size: 20px;
}

.px22 {
  font-size: 22px;
}

.px24 {
  font-size: 24px;
}

.px26 {
  font-size: 26px;
}

.px28 {
  font-size: 28px;
}

.px30 {
  font-size: 30px;
}

.px32 {
  font-size: 32px;
}

.px36 {
  font-size: 36px;
}

.px40 {
  font-size: 40px;
}

.line-height-20 {
  line-height: 20px;
}

.line-height-30 {
  line-height: 30px;
}

.line-height-40 {
  line-height: 40px;
}

.line-height-50 {
  line-height: 50px;
}

.line-height-60 {
  line-height: 60px;
}

.line-height-70 {
  line-height: 70px;
}

.line-height-80 {
  line-height: 80px;
}



.flex {
  display: flex;
  flex-direction: row;
}

[class^='flex-'],
[class*=' flex-'] {
  display: flex;
  flex-direction: row;
}

.flex-item {
  flex: 1;
}

.flex1 {
  flex: 1;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  justify-content: center;
}

.flex-end {
  justify-content: flex-end;
}

.flex-items-center {
  align-items: center;
}

.flex-items-end {
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-around {
  justify-content: space-around;
}

.flex-between {
  justify-content: space-between;
}

.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.flicker {
  animation: fade 1000ms infinite;
}

@keyframes fade {
  from {
    opacity: 1;
  }

  50% {
    opacity: 0.1;
  }

  to {
    opacity: 1;
  }
}

.rotation {
  animation: rotation-animation 6s linear infinite;
}

@keyframes rotation-animation {
  0% {
    -webkit-transform: rotate(0deg);
  }

  25% {
    -webkit-transform: rotate(90deg);
  }

  50% {
    -webkit-transform: rotate(180deg);
  }

  75% {
    -webkit-transform: rotate(270deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@import './global.scss';

// 加载Loading样式
.el-loading-mask {
  position: absolute;
  z-index: 2000;
  background-color: rgba(255, 255, 255, 0.9);
  margin: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;

  .el-loading-spinner {
    width: 30px;
    height: 30px;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 0;
    top: 50%;
    margin-top: -21px;
    text-align: center;
    position: absolute;

    .circular {
      display: none;
    }

    &:before {
      content: '';
      width: 30px;
      height: 5px;
      background: #000;
      opacity: 0.1;
      position: absolute;
      top: 45px;
      left: 0;
      border-radius: 50%;
      animation: loading-shadow 0.5s linear infinite;
    }

    &:after {
      content: '';
      width: 30px;
      height: 30px;
      background: $--color-primary;
      animation: loading-animate 0.5s linear infinite;
      position: absolute;
      top: 0;
      left: 0;
      border-radius: 3px;
    }
  }
}

@keyframes loading-animate {
  17% {
    border-bottom-right-radius: 3px;
  }

  25% {
    transform: translateY(9px) rotate(22.5deg);
  }

  50% {
    transform: translateY(18px) scale(1, 0.9) rotate(45deg);
    border-bottom-right-radius: 40px;
  }

  75% {
    transform: translateY(9px) rotate(67.5deg);
  }

  100% {
    transform: translateY(0) rotate(90deg);
  }
}

@keyframes loading-shadow {

  0%,
  100% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.2, 1);
  }
}

// 页面内容
.content {
  .el-scrollbar.content-scrollbar {
    height: calc(100vh - 150px);
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    // -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    // box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08);

    .el-scrollbar__wrap {
      overflow-x: hidden;
      margin-right: -27px !important; // 隐藏原始滚动条
      padding-right: 10px;

      .el-scrollbar__view {
        overflow-x: hidden;
      }
    }
  }

  .content-header {
    background-color: #fff;
    padding: 10px;
    overflow: hidden;

    .el-input {
      width: 200px;
      margin-right: 10px;
    }
  }

  .table {
    background-color: #fff;
    padding: 10px;
    overflow: hidden;

    .cell {
      text-align: center;
    }
  }

  .pagination {
    margin: 20px 0;
    text-align: center;

    .el-pagination {

      .btn-prev,
      .btn-next {
        background-color: transparent;
      }

      .el-pager li {
        background-color: transparent;
        border-radius: 50%;
      }

      .el-pager .number.active {
        -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      }
    }
  }

  .tree {
    background: #fff;
    padding: 30px 10px;
    border-radius: 4px;
    overflow: hidden;
    -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  }
}